<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理</title>
<link href="../public/admin/images/style.css" rel="stylesheet" type="text/css" />
<link href="../public/admin/layui/css/layui.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
	background:#FFF
}
</style>
</head>
<?php
include '../config/mysql.php'
?>
<body>
<div id="contentWrap">
        <div class="pageColumn">
              <table>
                <thead>
                  <th>ID</th>
                  <th>名称</th>
                  <th>操作</th>
                </thead>
                <tbody>
                <?php
                $data = select('SELECT * FROM class','all');
                foreach($data as $k=>$row){
                ?>
                    <tr>
                        <td><?php echo $row['id']?></td>
                        <td><?php echo $row['name']?></td>
                        <td>
                            <a href="classedit.php?id=<?php echo $row['id']?>" style="color: #01AAED">修改</a>
                            <a href="classcheck.php?type=classdel&id=<?php echo $row['id']?>" style="color: #FFB800">删除</a>
                        </td>
                  </tr>
                <?php }?>
                </tbody>
              </table>
        </div>
</div>
</body>
</html>
